﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using StripeOne.Web.StripeOneServiceReference;

namespace StripeOne.Web.Base.Service
{
    public class ServiceResult<T> where T : new()
    {
        public Status Status { get; set; }

        public T Result { get; set; }

        public ServiceResult(Status status)
        {
            Result = new T();
            Status = status;
        }

        public ServiceResult(Status status, T result)
        {
            Result = result;
            Status = status;
        }

        public ServiceResult()
        {
            Result = new T();
        }
    }
}